package com.damage.admin.service;

import com.damage.common.entity.Employee;
import com.damage.common.exception.UniqueException;
import com.github.pagehelper.PageInfo;
import com.sun.istack.internal.Nullable;

import java.util.List;

public interface IEmployeeService {

    Integer newEmployee(Employee employee)
            throws UniqueException;

    PageInfo<Employee> findEmployee(@Nullable Integer pageNum, Integer department,String name);

    PageInfo<Employee> findAll(@Nullable Integer pageNum);

    Employee findById(Integer id);

    Integer update(Employee employee);

    Integer deleteById(Integer id);
}
